﻿<h2>Close Button</h2>
<p id="close-button-event">
    <CloseButton id="close-button" Clicked="@RaiseCounter">Count</CloseButton>
    <span id="close-button-event-result">@eventCounter</span>
</p>
@code{
    int eventCounter = 0;

    void RaiseCounter()
    {
        eventCounter++;
    }
}